package com.ej.demo.page;

import com.thoughtworks.selenium.*;

public class eJTestBase {

	protected static Selenium selenium;
	protected static String pageWait = "90000";
	private static String HOST = "localhost";
	private static int PORT = 4444;
	private static String BROWSER = "chrome";
	private static String APP_URL = "http://www.easyjet.com/";

	static {
		selenium = new DefaultSelenium(HOST, PORT, BROWSER, APP_URL);
		selenium.start();
		selenium.setTimeout(pageWait);
		selenium.open("/");
		selenium.click("//input[@value='in English']");
		selenium.waitForPageToLoad(pageWait);
	}

	public static Selenium getSeleniumObj() {
		return selenium;
	}

}
